package com.zzyl.nursing.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import java.util.List;
import com.zzyl.nursing.domain.Device;

/**
 * 智能设备Mapper接口
 * 
 * @author CHEN
 * @date 2025-08-01
 */
@Mapper
public interface DeviceMapper extends BaseMapper<Device>
{

    /**
     * 查询智能设备列表
     * 
     * @param device 智能设备
     * @return 智能设备集合
     */
    public List<Device> selectDeviceList(Device device);
    /**
     * 根据物联网设备id查询 nursingId
     * @param iotId
     * @return
     */
    List<Long> selectNursingIdsByIotIdWithElder(String iotId);

    /**
     * 根据物联网设备id查询 nursingId
     * @param iotId
     * @return
     */
    List<Long> selectNursingIdsByIotIdWithBed(String iotId);

}
